package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Shop;
import com.antdesignbackend.backend.entity.entityVo.ShopVo;
import com.antdesignbackend.backend.mapper.ShopMapper;
import com.antdesignbackend.backend.service.IShopService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements IShopService {
    @Autowired
    private ShopMapper shopMapper;


    @Override
    public List<ShopVo> search(QueryWrapper<ShopVo> queryWrapper, Page<ShopVo> page) {
        return shopMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<ShopVo> queryWrapper) {
        return shopMapper.count(queryWrapper);
    }
    @Override
    public Integer counts(QueryWrapper<ShopVo> queryWrapper) {
        return shopMapper.counts(queryWrapper);
    }
    @Override
    public List<ShopVo> searchs(QueryWrapper<ShopVo> queryWrapper, Page<ShopVo> page) {
        return shopMapper.searchs(queryWrapper, page);
    }

}
